#-------- DEFAULT ---------------------------

flags = ['-O2','-Wall','-pedantic']

lib_boost = ['boost_system', 'boost_thread','boost_random','boost_program_options']
lib_cppcms = ['cppcms','cppdb']

libs = lib_boost + lib_cppcms

env = Environment(CPPFLAGS=flags, LIBS=libs)

netspy = 'netspy-server'
dbtest = 'dbtest'


sources = Split("""

main.cpp
Message.cpp
JSONParser.cpp
ClientRegistrar.cpp
RequestManager.cpp
Config.cpp
ClientChecker.cpp
ClientManager.cpp
DataProxy.cpp

""")


dbtestSources = Split("""

DataProxy.cpp
Config.cpp
DataTest.cpp

""")


targets = { 

netspy : sources,
dbtest : dbtestSources

}


default = env.Program( target=netspy, source = env.Object(targets[netspy]) )
Default(default)
env.Program(target=dbtest, source =  env.Object(targets[dbtest]))
